package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.YouWorldGiftCardOrder;
import com.ecoolex.discount.sales.entity.YouWorldGiftCardOrderExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface YouWorldGiftCardOrderMapper {
    long countByExample(YouWorldGiftCardOrderExample example);

    int deleteByExample(YouWorldGiftCardOrderExample example);

    int deleteByPrimaryKey(String orderId);

    int insert(YouWorldGiftCardOrder record);

    int insertSelective(@Param("record") YouWorldGiftCardOrder record, @Param("selective") YouWorldGiftCardOrder.Column ... selective);

    YouWorldGiftCardOrder selectOneByExample(YouWorldGiftCardOrderExample example);

    List<YouWorldGiftCardOrder> selectByExample(YouWorldGiftCardOrderExample example);

    YouWorldGiftCardOrder selectByPrimaryKey(String orderId);

    YouWorldGiftCardOrder selectByPrimaryKeyWithLogicalDelete(@Param("orderId") String orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") YouWorldGiftCardOrder record, @Param("example") YouWorldGiftCardOrderExample example, @Param("selective") YouWorldGiftCardOrder.Column ... selective);

    int updateByExample(@Param("record") YouWorldGiftCardOrder record, @Param("example") YouWorldGiftCardOrderExample example);

    int updateByPrimaryKeySelective(@Param("record") YouWorldGiftCardOrder record, @Param("selective") YouWorldGiftCardOrder.Column ... selective);

    int updateByPrimaryKey(YouWorldGiftCardOrder record);

    int batchInsert(@Param("list") List<YouWorldGiftCardOrder> list);

    int batchInsertSelective(@Param("list") List<YouWorldGiftCardOrder> list, @Param("selective") YouWorldGiftCardOrder.Column ... selective);

    int logicalDeleteByExample(@Param("example") YouWorldGiftCardOrderExample example);

    int logicalDeleteByPrimaryKey(String orderId);
}